Skip to content

Density uses line* instead of border* geom element #6547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

teunbrand
Copy link
Collaborator

This PR fixes #6512.

It doesn't solve David's issue at large, which we've expressed reluctance about, but it does fix the example pointed out.
From #6512 (comment):

Now for geom_density in particular this is a bit surprising because it is a polygon under the hood so it present itself as a line but is in fact a polygon. Maybe we can do something there.

This changes the border parametrisation to line parametrisation.

@teunbrand teunbrand added this to the ggplot2 4.0.0 milestone Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

element_geom use of linewidth & borderwidth etc
1 participant